package cn.lym.zxxx.filter.impl;

import cn.lym.zxxx.filter.ShareSessionFilter;
import cn.lym.zxxx.session.ShareSessionManager;
import cn.lym.zxxx.session.impl.RedisShareSessionManager;

import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionListener;
import java.util.ArrayList;
import java.util.List;

public class RedisShareSessionFilter extends ShareSessionFilter {

    private RedisShareSessionManager sessionManager;

    @Override
    public ShareSessionManager getSessionManager() {
        if (sessionManager == null) {
            sessionManager = new RedisShareSessionManager();
            sessionManager.init();
        }
        return sessionManager;
    }
}
